<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/9/27 0027
  Time: 22:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加商品信息</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <script type="text/javascript" src="/js/jquery-2.1.0.min.js"></script>
    <script src="/layui/layui.js"></script>
    <script src="/js/showAddItem.js"></script>
    <link rel="stylesheet" href="/css/zTreeStyle/zTreeStyle.css" type="text/css">
    <script type="text/javascript" src="/js/jquery.ztree.core.js"></script>
    <style>
        #sellPoint {
            min-height: 60px;
        }

        .layui-upload-img {
            width: 92px;
            height: 92px;
            margin: 0 10px 10px 0;
        }
    </style>
</head>
<body>
<form class="layui-form" id="addItem" lay-filter="example">
    <%--标题--%>
    <div class="layui-form-item">
        <label class="layui-form-label">标题</label>
        <div class="layui-input-inline">
            <input placeholder="请输入商品标题" id="title" type="text" name="title" class="layui-input">
        </div>
    </div>

    <%--子标题--%>
    <div class="layui-form-item">
        <label class="layui-form-label">子标题</label>
        <div class="layui-input-inline">
            <input placeholder="请输入商品标题" id="subTitle" type="text" name="subTitle" class="layui-input">
        </div>
    </div>
    <%--描述--%>
    <div class="layui-form-item">
        <label class="layui-form-label">描述</label>
        <div class="layui-input-inline">
            <textarea placeholder="请输入商品卖点" id="sellPoint" name="sellPoint" class="layui-textarea"></textarea>
        </div>
    </div>
    <%--链接--%>
    <div class="layui-form-item">
        <label class="layui-form-label">链接</label>
        <div class="layui-input-inline">
            <input placeholder="请输入商品价格" id="price" type="text" name="price" class="layui-input">
        </div>
    </div>


    <%--图片--%>
    <div class="layui-form-item">
        <label class="layui-form-label">图片1</label>
        <div class="layui-input-block">
            <div class="layui-upload">
                <button type="button" class="layui-btn" id="uploadPic">上传图片1</button>
                <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
                    预览图：
                    <div class="layui-upload-list" id="showPic"></div>
                </blockquote>
            </div>
        </div>
    </div>
    <%--图片--%>
    <div class="layui-form-item">
        <label class="layui-form-label">图片2</label>
        <div class="layui-input-block">
            <div class="layui-upload">
                <button type="button" class="layui-btn" id="uploadPic2">上传图片2</button>
                <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
                    预览图：
                    <div class="layui-upload-list" id="showPic2"></div>
                </blockquote>
            </div>
        </div>
    </div>
    <%--内容--%>
    <div class="layui-form-item">
        <label class="layui-form-label">内容</label>
        <div class="layui-input-inline">
            <input placeholder="请输入条形码" id="barcode" type="text" name="barcode" class="layui-input">
        </div>
    </div>


    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="button" id="saveBtn" class="layui-btn layui-bg-red" lay-submit="">立即提交</button>
            <button type="reset" class="layui-btn layui-bg-orange">重置</button>
        </div>
    </div>
</form>

</body>
</html>

